package treeIR;

/**
 * 
 * */
public class CALL extends Exp {
  
	/***/
	public Exp func;
	/***/
	public ExpList args;
	/***/
	public CALL(Exp f, ExpList a) {func=f; args=a;}
  
	/**
	 * 
	 * */
	public ExpList kids(){
		return new ExpList(func,args);
	}
	
	/**
	 * 
	 * */
	public Exp build(ExpList kids) {
		return new CALL(kids.head,(ExpList) kids.tail);
	}
	
	/**
	 * 
	 * */
	public String print() {
		return "CALL( "+func.print()+");";
	}
  
}

